﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;


namespace ABCTile.Models
{
    public class Estimate
    {
        [Required(ErrorMessage = "Estimate ID is required")]
        [Display(Name = "Estimate ID")]
        public int Id { get; set; }

        [Required(ErrorMessage = "Project ID is required")]
        [Display(Name = "Project ID")]
        public int ProjectId { get; set; }

        public decimal EstimateTotal { get; set; }

        [Required(ErrorMessage = "Estimate Date is required")]
        public DateTime EstimateDate { get; set; }
        public string EstimateComment { get; set; }
        public string EstimateStatus { get; set; }

        public virtual ICollection<EstimateDetail> EstimateDetails { get; set; }
        public virtual ICollection<Proposal> Proposals { get; set; }
    }
}